//
//  UIView+WZPFrame.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/3.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "UIView+WZPFrame.h"

@implementation UIView (WZPFrame)
-(CGFloat)wzp_centerX{
    return self.center.x;
    
}
-(void)setWzp_centerX:(CGFloat)wzp_centerX{
    CGPoint center = self.center;
    center.x = wzp_centerX;
    self.center = center;
    
}
-(CGFloat)wzp_centerY{
    return self.center.y;
    
}
-(void)setWzp_centerY:(CGFloat)wzp_centerY{
    CGPoint center = self.center;
    center.y = wzp_centerY;
    self.center = center;
    
}
-(CGFloat)wzp_x{
    
    return self.frame.origin.x;
}
-(void)setWzp_x:(CGFloat)wzp_x{
    
    CGRect frame = self.frame;
    frame.origin.x = wzp_x;
    self.frame = frame;
}
-(CGFloat)wzp_y{
    
    return self.frame.origin.y;
}
-(void)setWzp_y:(CGFloat)wzp_y{
    
    CGRect frame = self.frame;
    frame.origin.y = wzp_y;
    self.frame = frame;
}
-(CGFloat)wzp_width{
    
    return self.frame.size.width;
}
-(void)setWzp_width:(CGFloat)wzp_width{
    
    CGRect frame = self.frame;
    frame.size.width = wzp_width;
    self.frame = frame;
}
-(CGFloat)wzp_height{
    
    return self.frame.size.height;
}
-(void)setWzp_height:(CGFloat)wzp_height{
    
    CGRect frame = self.frame;
    frame.size.height = wzp_height;
    self.frame = frame;
}


@end
